﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="calculator.aspx.vb" Inherits="FirstASPNetSite.calculator" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    Input your first number here:
    <asp:TextBox ID="tb_FirstNumber" runat="server"></asp:TextBox>
    <asp:RangeValidator ID="RangeValidator1" runat="server" 
    ControlToValidate="tb_FirstNumber" CssClass="errorMessage" 
    ErrorMessage="You must type in a number between 1 and 1000" MaximumValue="1000" 
    MinimumValue="1" Type="Integer"></asp:RangeValidator>
    <br />
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
    ControlToValidate="tb_FirstNumber" CssClass="errorMessage" 
    ErrorMessage="Please enter a number"></asp:RequiredFieldValidator>
    <br />
    Input your second number here:
    <asp:TextBox ID="tb_SecondNumber" runat="server"></asp:TextBox>
    <asp:RangeValidator ID="RangeValidator2" runat="server" 
    ControlToValidate="tb_SecondNumber" CssClass="errorMessage" 
    ErrorMessage="You must type in a number between 1 and 1000" MaximumValue="1000" 
    MinimumValue="1" Type="Integer"></asp:RangeValidator>
    <br />
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
    ControlToValidate="tb_SecondNumber" CssClass="errorMessage" 
    ErrorMessage="Please enter a number"></asp:RequiredFieldValidator>
    <br />
    <asp:Button ID="btn_Calculate" runat="server" Text="+" />
    &nbsp; <asp:Button ID="btn_minus" runat="server" Text="-" />
    &nbsp; <asp:Button ID="btn_times" runat="server" Text="x" />
    &nbsp; <asp:Button ID="btn_divide" runat="server" Text="/" />
    &nbsp;
    <asp:Button ID="btn_powerOf" runat="server" Text="^" />
    <br />
    <br />
    <asp:Label ID="lbl_Result" runat="server"></asp:Label>
    <br />
</asp:Content>
